<div class="users form">
<?php $session->flash() ;?>
<?php echo $form->create('Group', array('action' => 'addusers','type'=> 'post','id' => 'form','name' => 'form') ); 
?>
	<fieldset>
 		<legend><?php __('manage users');?></legend>
 		<ul>
		<?php
		if(isset($imuser)){
		foreach($imuser as $key=>$im){
		?>
		<li>
			<?php echo $form->text('immembers',array('type'=>'checkbox','value'=> $key,'name'=>'immembers[]')).$im; ?>
		</li>
		<?php
		}
		}
		?>
		</ul>
		<?php echo $form->input('groupid',array('type'=>'hidden','value'=> $id,'name'=>'groupid')); ?>
	</fieldset>
	<?php echo $form->submit(__('Save',true), array("id"=>"manageuser","name"=>"submit","class"=>"buttom","div"=>false)); ?>
</div>